package com.huanletao.spring.lifecycle;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * <p>
 *
 * </p>
 *
 * @package: com.huanletao.spring.lifecycle
 * @Description:
 * @className: MYDisposableBean
 * @author: @NNCSKJ ADMIN
 * @copyright: Copyright (c) 2022/8/10 9:57
 * @version: V1.0
 */
public class MYDisposableBean implements DisposableBean, InitializingBean {


    /**
     * 销毁bean 时，调用的方法；
     * @throws Exception
     */
    @Override
    public void destroy() throws Exception {

    }

    /**
     * 初始化方法
     *
     * @throws Exception
     */
    @Override
    public void afterPropertiesSet() throws Exception {

    }
}
